﻿@model Dictionary<string, object>
@{
    ViewBag.Title = "增加下级";
    Layout = "~/Views/Shared/_JuiLayout.cshtml";

    string pid = MyRequest.GetQueryString("pid");
    string pidName = "根目录";
    if (pid != "0")
    {
        pidName = selectControlBLL.getNameById("id", pid, "Sys_IBRoles", "Name");
    }
}
@section header {
    <link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
}
<div id="layout" class="noNavTab">
    <div id="navTab">
        <h2 class="contentTitle">
            添加角色</h2>
        @{
            string rturl = "/SysMenu/List?menu=Roles&name=list&pid=" + pid;
            using (Html.BeginForm("Add", "OperateTotal", new { name = DencryptHelper.Encrypt("Sys_IBRoles"), url = rturl }, FormMethod.Post, new { @class = "pageForm required-validate", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
          { 
         
            <div class="pageFormContent nowrap">
                <dl>
                    <dt>所属上级：</dt>
                    <dd>
                        @Html.TextBox("ParentId", pidName, new { @class = "textInput readonly", @readonly = "true" })
                        <input type="hidden" name="t0_ParentId" id="t0_ParentId" value='@pid' />
                    </dd>
                </dl>
                <dl>
                    <dt>角色编码：</dt>
                    <dd>
                        @Html.TextBox("t0_No", "", new { @class = "required textInput" })
                    </dd>
                </dl>
                <dl>
                    <dt>角色名称：</dt>
                    <dd>
                        @Html.TextBox("t0_Name", "", new { @class = "required textInput" })
                    </dd>
                </dl>
                <dl>
                    <dt>角色描述：</dt>
                    <dd>
                        @Html.TextArea("t0_Description", new { @class = "required textInput", rows = "5", cols = "80", maxlength = "100" })
                    </dd>
                </dl>
                <dl>
                    <dt>&nbsp</dt>
                    <dd>
                        <div class="buttonActive">
                                <div class="buttonContent">
                                    <button type="submit">
                                        添加</button></div>
                            </div>
                    </dd>
                </dl>
            </div>
          }
        }
    </div>
</div>

